package com.decoration.basic.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.decoration.basic.entity.DecCarouselInf;
import com.decoration.basic.mapper.DecCarouselInfMapper;
import com.decoration.basic.findCondition.DecCarouselFindCondition;
import com.decoration.basic.service.DecCarouselService;

@Service
public class DecCarouselServiceImpl implements DecCarouselService {

	@Resource
	private DecCarouselInfMapper decCarouselMapper;

	@Override
	public int deleteById(Integer carouselId) {
		return decCarouselMapper.deleteById(carouselId);
	}

	@Override
	public int insert(DecCarouselInf record) {
		return decCarouselMapper.insert(record);
	}

	@Override
	public int updateById(DecCarouselInf record) {
		return decCarouselMapper.updateById(record);
	}

	@Override
	public DecCarouselInf findById(String carouselId) {
		return decCarouselMapper.findById(carouselId);
	}

	@Override
	public List<DecCarouselInf> findAll(DecCarouselFindCondition findCondition) {
		return decCarouselMapper.findAll(findCondition);
	}

	@Override
	public int getDecCarouselInfSize() {
		return decCarouselMapper.getDecCarouselInfSize();
	}

}
